using System;
using System.Collections.Generic;
using System.Reflection;
using System.Windows.Controls;
using Microsoft.Phone.Controls;
using WindowsPhoneMVC.Interfaces;

namespace WindowsPhoneMVC.Tests.Navigation.Fakes
{
    public class FakeViewLocator : IViewLocator
    {
        private readonly Dictionary<string, PhoneApplicationPage> views;

        public FakeViewLocator()
        {
            views = new Dictionary<string, PhoneApplicationPage>();
        }

        public void RegisterView(string controllerName, string viewName, PhoneApplicationPage view)
        {
            views.Add(controllerName + viewName, view);
        }

        public UserControl Locate(string controllerName, string viewName)
        {
            return views[controllerName+viewName];
        }

        public void AddAssemblyToScan(Assembly assembly)
        {
            
        }
    }
}